package com.geekaca.d4.d6utils;

import java.util.Arrays;

public class TestArrayDemo1 {
    public static void main(String[] args) {
        int[] arr ={10,2,55,23,24,100};
        System.out.println(arr);

        String s = Arrays.toString(arr);
        System.out.println(s);

        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));

        System.out.println("==========二分查找===========");
        int index =Arrays.binarySearch(arr,55);
        System.out.println(index);

    }
}
